import { services } from '@/config'

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  searchMenuSpan: 6,
  labelWidth: 130,
  searchLabelWidth: 115,
  searchShow: false,
  viewBtn: true,
  column: [
    {
      label: '关系人',
      prop: 'userName',
      search: true,
      formslot: true,
      searchslot: true,
      span: 12,
      display: true
    },
    {
      type: 'input',
      label: '成员名称',
      prop: 'memberName',
      search: true,
      span: 12
    },
    {
      type: 'input',
      label: '与本人关系',
      prop: 'relationship',
      search: true,
      span: 12
    },
    {
      type: 'date',
      label: '出生日期',
      prop: 'birthday',
      span: 12,
      display: true,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd'
    },
    {
      type: 'input',
      label: '工作单位及职务',
      prop: 'workunitPosition',
      search: true,
      span: 12
    },
    {
      type: 'select',
      label: '成员政治面貌',
      prop: 'political',
      span: 12,
      display: true,
      props: { label: 'label', value: 'value' },
      dicUrl: `${services.adminService}dict/type/political_status_members`,
      search: true,
      dicMethod: 'get'
    },
    {
      type: 'select',
      label: '成员文化程度',
      prop: 'education',
      search: true,
      span: 12,
      display: true,
      width: 100,
      props: { label: 'label', value: 'value' },
      dicUrl: `${services.adminService}dict/type/最高学历`,
      dicMethod: 'get'
    }
  ]
}
